/* =====================================================
   BERITA-1 (NEWS DETAIL) – Premium Redesign
   PT Indal Steel Pipe
===================================================== */

/* ===== READING PROGRESS BAR ===== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-muted));
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 3px 3px 0;
}

/* ===== ARTICLE HERO ===== */
.article-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
    overflow: hidden;
    background: #000;
}

.article-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    animation: heroZoomOut 8s linear forwards;
    opacity: 0.6;
}

@keyframes heroZoomOut {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1);
    }
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.65) 40%,
            rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 60px 0 50px;
    max-width: 830px;
}

/* Breadcrumb */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: #fff;
}

.article-breadcrumb .sep {
    font-size: 9px;
    opacity: 0.4;
}

/* Tag */
.article-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--accent);
    color: #fff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

/* Title */
.article-hero-title {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Meta */
.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.article-meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.article-meta-author div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-meta-author strong {
    font-size: 14px;
    color: #fff;
}

.article-meta-author span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.article-meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.meta-info-item i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== ARTICLE SECTION ===== */
.article-section {
    padding: 60px 0 80px;
    background: var(--bg-light);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* ===== ARTICLE MAIN ===== */
.article-main {
    min-width: 0;
}

/* Share Row */
.article-share-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 30px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.share-row-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    margin-right: 4px;
}

.share-row-buttons {
    display: flex;
    gap: 10px;
}

/* Article Body */
.article-body-wrap {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-light);
}

/* Lead Paragraph */
.lead-paragraph {
    font-size: 18.5px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 36px;
    padding: 26px 30px;
    background: var(--bg-light);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    line-height: 1.75;
}

/* Stats Strip */
.article-stats-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--accent);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    margin: 36px 0;
    gap: 0;
}

.article-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.art-stat-num {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}

.art-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.article-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
}

/* Headings */
.article-body-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 40px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    letter-spacing: -0.02em;
}

.article-body-wrap h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin: 28px 0 12px 0;
}

.article-body-wrap p {
    margin-bottom: 22px;
}

.article-body-wrap p:last-child {
    margin-bottom: 0;
}

.article-body-wrap strong {
    color: var(--text);
    font-weight: 600;
}

/* Blockquote */
blockquote {
    background: var(--bg-light);
    border-left: 5px solid var(--accent);
    padding: 28px 36px;
    margin: 36px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 1.08rem;
    color: var(--text);
    position: relative;
    box-shadow: var(--shadow-sm);
}

blockquote::before {
    content: '"';
    font-size: 72px;
    color: var(--accent);
    opacity: 0.12;
    position: absolute;
    top: -16px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

blockquote cite {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    color: var(--accent);
}

/* Article List */
.article-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    border: 1px solid var(--border);
}

.article-list li {
    padding: 13px 0 13px 34px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 16px;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 17px;
}

/* Highlight Box */
.article-highlight-box {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-light) 100%);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(139, 26, 26, 0.08);
}

.article-highlight-box h3 {
    margin: 0 0 20px 0;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.article-highlight-box h3 i {
    font-size: 20px;
}

.article-highlight-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-highlight-box li {
    padding: 11px 0 11px 26px;
    position: relative;
    color: var(--text);
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.article-highlight-box li:last-child {
    border-bottom: none;
}

.article-highlight-box li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 16px;
    top: 12px;
}

/* Article Image */
.article-image {
    margin: 24px 0 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-light);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Inline Image */
.article-inline-image {
    margin: 36px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-inline-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.image-caption {
    background: var(--bg-light);
    padding: 10px 18px;
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    border-top: 1px solid var(--border);
}

/* ===== ARTICLE FOOTER BAR ===== */
.article-footer-bar {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 22px 28px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

/* Tags */
.article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tags-label {
    color: var(--accent);
    font-size: 15px;
}

.tag-item {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--border);
    font-weight: 500;
}

.tag-item:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Share Bottom Row */
.article-share-bottom-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

.social-icons {
    display: flex;
    gap: 8px;
}

/* Social Buttons */
.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: all 0.25s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.social-btn.linktree {
    background: #d52b1e; /* Brand Red */
    color: #fff;
}

.social-btn.linktree:hover {
    background: #b82316;
    color: #fff;
    transform: translateY(-4px) scale(1.1);
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.linkedin:hover {
    background: #006097;
}

.social-btn.twitter {
    background: #18181b;
}

.social-btn.twitter:hover {
    background: #333;
}

.social-btn.facebook {
    background: #1877F2;
}

.social-btn.facebook:hover {
    background: #166fe5;
}

.social-btn.copy-link {
    background: var(--text-light);
}

.social-btn.copy-link:hover {
    background: var(--text);
}

/* ===== ARTICLE NAVIGATION ===== */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.nav-article {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 22px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    transition: all 0.28s ease;
    box-shadow: var(--shadow-sm);
}

.nav-article:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.nav-article.prev {
    flex-direction: row;
}

.nav-article.next {
    flex-direction: row-reverse;
    text-align: right;
}

.nav-article-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.nav-article:hover .nav-article-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.nav-direction {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.nav-info {
    min-width: 0;
    flex: 1;
}

.nav-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 88px;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
}

.widget-header i {
    color: var(--accent);
    font-size: 16px;
}

.widget-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 16px 22px;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-list li {
    counter-increment: toc-counter;
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.toc-list li:last-child {
    border-bottom: none;
}

.toc-list li::before {
    content: counter(toc-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
}

.toc-list a {
    font-size: 13.5px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.5;
    display: block;
}

.toc-list a:hover {
    color: var(--accent);
}

/* Related News */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-card {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
    cursor: pointer;
}

.related-card:last-child {
    border-bottom: none;
}

.related-card:hover {
    background: var(--bg-light);
}

.related-img-wrap {
    width: 80px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-img-wrap img {
    transform: scale(1.06);
}

.related-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.related-info p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    transition: color 0.2s;
}

.related-card:hover .related-info p {
    color: var(--accent);
}

.related-date {
    font-size: 12px;
    color: var(--text-xlight);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* News Tag */
.news-tag {
    display: inline-block;
    width: fit-content;
    background: var(--accent-light);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr 260px;
    }

    .article-body-wrap {
        padding: 36px;
    }
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .article-hero {
        height: 70vh;
        min-height: 480px;
    }
}

@media (max-width: 720px) {
    .article-body-wrap {
        padding: 24px;
    }

    .article-hero-content {
        padding: 48px 0 40px;
    }

    .article-stats-strip {
        padding: 18px 20px;
    }

    .art-stat-num {
        font-size: 1.5rem;
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }

    .nav-article {
        padding: 16px 18px;
        gap: 12px;
        align-items: flex-start;
    }

    .nav-article.next {
        text-align: left;
        flex-direction: row;
    }

    .nav-info h5 {
        font-size: 13px;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .article-hero {
        height: 65vh;
        min-height: 420px;
    }

    .article-hero-content {
        padding: 30px 0 30px;
    }

    .article-hero-title {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .article-hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .article-stats-strip {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        text-align: center;
    }

    .article-stat-item {
        align-items: center;
    }

    .article-stat-divider {
        width: 60%;
        height: 1px;
        margin: 0 auto;
    }

    .article-share-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 14px 18px;
    }

    .article-footer-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .lead-paragraph {
        font-size: 15px;
        padding: 18px 20px;
    }
}

@media (max-width: 400px) {
    .article-hero-title {
        font-size: 1.25rem;
    }

    .article-footer-bar .footer-tags {
        flex-wrap: wrap;
    }
}

/* ===== DARK MODE ===== */
body.dark-mode .article-body-wrap,
body.dark-mode .sidebar-widget,
body.dark-mode .nav-article,
body.dark-mode .article-share-row,
body.dark-mode .article-footer-bar {
    background: var(--card-bg);
    border-color: var(--border);
}

body.dark-mode .widget-header {
    background: var(--bg-light);
    border-color: var(--border);
}

body.dark-mode blockquote {
    background: var(--bg-light);
}

body.dark-mode .article-highlight-box {
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-light) 100%);
    border-color: var(--accent-dark);
}

body.dark-mode .article-list {
    background: var(--bg-light);
    border-color: var(--border);
}

body.dark-mode .lead-paragraph {
    background: var(--bg-light);
}

body.dark-mode .tag-item {
    background: var(--bg-light);
    border-color: var(--border);
    color: var(--text-light);
}